export default {
	state: {
		sysInfo: {}
	},
	mutations: {
		setSysInfo(state, data) {
			state.sysInfo = data
		}
	},
	actions: {
		async handleSetSysInfo({
			commit
		}) {
			const [err, data] = await uni.getSystemInfo();
			if (data.errMsg == 'getSystemInfo:ok') {
				commit('setSysInfo', data)
			}
		}
	}
}
